
#include "CuTest.h"
#include "../semantics/LookupTable.h"

void TestLookupTableNew(CuTest* pCu)
{
	pLookupTable ret = LookupTable_new();
	CuAssertTrue(pCu, ret != NULL);
}

void TestLookupTableAdd(CuTest* pCu)
{
	pLookupTable table = LookupTable_new();
	CuAssertTrue(pCu, table != NULL);
	pAnonymousStatement anon = AnonymousStatement_new();
	int ret = table->add(table, String_new("main"), anon);
	CuAssertTrue(pCu, ret == 1);
}
